import '@/assets/base.scss'
import '@/assets/icon/iconfont.css'


import { createApp } from 'vue'
import App from './App.vue'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'



import router from '@/router'
import Header from '@/components/Header.vue'
import TitleBar from '@/components/TitleBar.vue'
import NoData  from '@/components/NoData.vue'
import Dialog  from '@/components/Dialog.vue'

import Request from "@/utils/Request"
import {Api} from "@/utils/Api"
import Utils from "@/utils/Utils"
import Message from "@/utils/Message"

import * as Pinia from 'pinia'


const app = createApp(App);

app.use(ElementPlus);
app.use(router);
app.use(Pinia.createPinia());

app.component("Header",Header);
app.component("TitleBar",TitleBar);
app.component("NoData",NoData);
app.component("Dialog",Dialog);

app.config.globalProperties.Request = Request;
app.config.globalProperties.Api = Api;
app.config.globalProperties.Utils = Utils;
app.config.globalProperties.Message = Message;
app.mount('#app')



